package com.lh.serverforwebrtc.controller;

import com.lh.serverforwebrtc.bean.RespBean;
import com.lh.serverforwebrtc.bean.UserBean;
import com.lh.serverforwebrtc.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@Api(tags = "UserController")
@RestController
@RequestMapping("user")
public class UserController {

    @Autowired
    private UserService userService;


    @ApiOperation(value ="更新用户信息")
    @PostMapping("updateUser")
    public RespBean updateUser(@RequestBody UserBean userBean){
        return userService.updateUser(userBean);
    }



}
